import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/login",
    component: () => import("@/views/Login/index.vue"),
  },
  {
    path: "/home",
    component: () => import("@/views/Omission/index.vue"),
  },
  {
    path: "/omission/statistics",
    component: () => import("@/views/Omission/statistics.vue"),
  },
  {
    path: "/omission/number",
    component: () => import("@/views/Omission/number.vue"),
  },
  {
    path: "/omission/group",
    component: () => import("@/views/Omission/group.vue"),
  },
  {
    path: "/omission/maintain",
    component: () => import("@/views/Omission/maintain.vue"),
  },
  {
    path: "/filter-tool",
    component: () => import("@/views/FilteringTool/index.vue"),
  },
  {
    path: "/plan",
    component: () => import("@/views/Plan/index.vue"),
  },
  {
    path: "/hang",
    component: () => import("@/views/Hang/index.vue"),
  },
  {
    path: "/profit",
    component: () => import("@/views/Profit/index.vue"),
  },
  {
    path: "/calculator",
    component: () => import("@/views/Calculator/index.vue"),
  },
  {
    path: "/organization",
    component: () => import("@/views/Organization/index.vue"),
  },
  {
    path: "/betting",
    component: () => import("@/views/Betting/index.vue"),
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
